﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;

namespace ServicioLugares
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ILugares" in both code and config file together.
    [ServiceContract]
    public interface ILugares
    {
        [OperationContract]
        [WebInvoke(Method="GET",
            ResponseFormat=WebMessageFormat.Json,
            BodyStyle=WebMessageBodyStyle.Wrapped,
            UriTemplate = "json/?latitud={latitud}&longitud={longitud}&tipo={tipo}&radio={radio}&cantitems={cantitems}")]
        GeoResponse GetLugares(string latitud, string longitud, string tipo, string radio, int cantitems);
    }
}
